package com.ziyueyuwen.xiniao.test;

import java.util.Date;

/**
 * @author wancheng  on 2018/12/13.
 */
public class NameBean {

    private Integer courseId;

    private Integer eeoCourseId;

    private String time;

    private String courseName;

    private String grade;

    private String count;

    private Integer classCount;

    private Date beginTime;

    private String eeoCourseName;

    public NameBean() {
    }

    public NameBean(String courseName) {
        this.courseName = courseName;
    }

    public NameBean(String time, String courseName, String grade) {
        this.time = time;
        this.courseName = courseName;
        this.grade = grade;
    }

    public NameBean(String courseName, Integer classCount) {
        this.courseName = courseName;
        this.classCount = classCount;
    }

    public NameBean(String courseName, String grade, Integer classCount,Date beginTime,String eeoCourseName) {
        this.courseName = courseName;
        this.grade = grade;
        this.classCount = classCount;
        this.beginTime = beginTime;
        this.eeoCourseName = eeoCourseName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public Integer getEeoCourseId() {
        return eeoCourseId;
    }

    public void setEeoCourseId(Integer eeoCourseId) {
        this.eeoCourseId = eeoCourseId;
    }

    public Integer getClassCount() {
        return classCount;
    }

    public void setClassCount(Integer classCount) {
        this.classCount = classCount;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public String getEeoCourseName() {
        return eeoCourseName;
    }

    public void setEeoCourseName(String eeoCourseName) {
        this.eeoCourseName = eeoCourseName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        NameBean nameBean = (NameBean) o;

        if (!courseName.equals(nameBean.courseName)) return false;
        if (grade == null){
            grade = "";
        }
        if (nameBean.grade == null){
            nameBean.grade = "";
        }
        return grade.equals(nameBean.grade);

    }

    @Override
    public int hashCode() {
        int result = courseName.hashCode();
        if (grade != null){
            result = 31 * result + grade.hashCode();
        }
        return result;
    }

    @Override
    public String toString() {
        return "NameBean{" +
                "time='" + time + '\'' +
                ", courseName='" + courseName + '\'' +
                ", grade='" + grade + '\'' +
                ", count='" + count + '\'' +
                '}';
    }
}
